<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<style>
/* @import "../static/assets/plugins/morris/morris.css";
@import "../static/assets/plugins/fileuploads/css/dropify.min.css";
@import "../static/assets/plugins/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css";
@import "../static/assets/plugins/bootstrap-sweetalert/sweet-alert.css";
@import "../static/assets/css/bootstrap.min.css";
@import "../static/assets/css/core.css";
@import "../static/assets/css/components.css";
@import "../static/assets/css/icons.css";
@import "../static/assets/css/pages.css";
@import "../static/assets/css/menu.css";
@import "../static/assets/css/responsive.css"; */
</style>

<script>
// import router from "./router";
// import axios from "axios";
// router.beforeEach((to, from, next) => {
//   if (to.name == "Signin") {
//     next();
//   } else {
//     let token = localStorage.getItem("token");
//     if (token) {
//       //访问服务器缓存数据，判断当前token是否失效
//       axios({
//         url: "http://123.57.61.168:8000" + "/api/user/virify/", // 校验token有效期
//         method: "post",
//         data: {
//           token: token
//         },
//         withCredentials: true
//       }).then(res => {
//         if (res.data.code == 0) {
//           next();
//         } else {
//           next("/signin");
//         }
//       });
//     } else {
//       next("/signin");
//     }
//   }
// });
export default {};
</script>